<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>解构赋值</title>
</head>
<body>
    <script>
        //let {a,b}={a:12,b:5,c:7};
        //let [a,b]=[5,8];
        //console.log(a,b);

        //let {a,b}=[1,2];
        //let json={a,b}
        let {a,b}={a:1,b:2};

        console.log(a,b);
    </script>
</body>
</html>